﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DBQuestionSearchWindow.ascx.cs" Inherits="ExaminationSys.View.SystemManage.DBQuestionSearchWindow" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<ext:Window 
    ID="DBQuestionSearch" 
    runat="server" 
    Icon="Group" 
    Title="题库管理(普通题)高级查询"
    Width="420" 
    Height="300" 
    AutoShow="false" 
    Modal="true" 
    Hidden="true"
    Layout="Fit">
    <Items>       
        <ext:FormPanel 
            ID="DBQuestionSearchPanel" 
            runat="server" 
            Icon="ChartOrganisation"
            DefaultAnchor="95%"
            Padding="5"
            BodyPadding="10">
            <Items>
                <ext:TextField ID="Knowledge" Name="Knowledge" runat="server" Cls="lbl" FieldLabel="知识点" /> 
                <ext:TextField ID="KeyWord" Name="KeyWord" runat="server" Cls="lbl" FieldLabel="关键字" />
                <ext:TextField ID="Content" Name="Content" runat="server" Cls="lbl" FieldLabel="内容" />
                <ext:ComboBox ID="QuestionType" runat="server" FieldLabel="类型" Cls="lbl" EmptyText="">
                    <Items>
                        <ext:ListItem Value="单选" Text="单选"></ext:ListItem>
                        <ext:ListItem Value="多选" Text="多选"></ext:ListItem>
                    </Items>
                </ext:ComboBox>
                <ext:ComboBox ID="Challenge" runat="server" FieldLabel="难度" Cls="lbl" EmptyText="">
                    <Items>
                        <ext:ListItem Value="高" Text="高"></ext:ListItem>
                        <ext:ListItem Value="中" Text="中"></ext:ListItem>
                        <ext:ListItem Value="低" Text="低"></ext:ListItem>
                    </Items>
                </ext:ComboBox>
                <ext:ComboBox ID="SubjectType" runat="server" FieldLabel="题型" Cls="lbl" EmptyText="">
                    <Items>
                        <ext:ListItem Value="阅读" Text="阅读" Index="0"></ext:ListItem>
                        <ext:ListItem Value="视听" Text="视听"></ext:ListItem>
                    </Items>
                </ext:ComboBox>
                <ext:RadioGroup 
                    ID="RadioGroupPub" 
                    runat="server" 
                    FieldLabel="是否锁住"                             
                    Padding="5" Cls="lbl"
                    >
                    <Items>
                        <ext:Radio ID="RadioAll" runat="server" BoxLabel="全部" Checked="true" />
                        <ext:Radio ID="RadioYes" runat="server" BoxLabel="是"  />
                        <ext:Radio ID="RadioNo" runat="server" BoxLabel="否" />
                    </Items>
                </ext:RadioGroup>
            </Items>
        </ext:FormPanel>
    </Items>
    <Buttons>
        <ext:Button ID="SearchButton" runat="server" Text="查询" Icon="Find">
            <DirectEvents>
                <Click OnEvent="SearchDBQuestion" Failure="Ext.MessageBox.alert('process failed', 'Error during ajax event');">
                </Click>
            </DirectEvents>
            
        </ext:Button>
        <ext:Button ID="CancelButton" runat="server" Text="取消" Icon="Cancel">
            <Listeners>
                 <Click Handler="#{DBQuestionSearch}.hide(null);" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>